import request from '@/utils/request'

// 获取反馈列表
export function getFeedbackList(params) {
  return request({
    url: '/feedback/list',
    method: 'get',
    params
  })
}

// 回复反馈
export function replyFeedback(id, data) {
  return request({
    url: `/feedback/${id}/reply`,
    method: 'post',
    data
  })
}

// 更新反馈状态
export function updateFeedbackStatus(id, status) {
  return request({
    url: `/feedback/${id}/status`,
    method: 'put',
    data: { status }
  })
}

